#include <stdio.h>

//将一个16位数高低8位交换 
static inline unsigned short bswap_16(unsigned short v)
{
	return ((v & 0xff) << 8) | (v >> 8);

}

int main(void)
{
	unsigned short v = 0x2233;
	printf("origin v is 0x%x \n",v);
	v=bswap_16(v);
	printf("swap v is 0x%x \n",v);

	return 0;
}
